package cn.xutongxue.book_sales.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * @author XuTongXue
 * @since 2021-12-02
 */
@TableName("menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单名称
     */
    @TableField("menu_name")
    private String menuName;

    /**
     * 菜单地址
     */
    @TableField("menu_path")
    private String menuPath;

    /**
     * 菜单组件名称
     */
    @TableField("menu_component")
    private String menuComponent;

    /**
     * 菜单状态(1:启用，0:禁用)
     */
    @TableField("menu_status")
    private Integer menuStatus;

    /**
     * 主键
     */
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }
    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }
    public String getMenuComponent() {
        return menuComponent;
    }

    public void setMenuComponent(String menuComponent) {
        this.menuComponent = menuComponent;
    }
    public Integer getMenuStatus() {
        return menuStatus;
    }

    public void setMenuStatus(Integer menuStatus) {
        this.menuStatus = menuStatus;
    }
    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    @Override
    public String toString() {
        return "Menu{" +
            "menuName=" + menuName +
            ", menuPath=" + menuPath +
            ", menuComponent=" + menuComponent +
            ", menuStatus=" + menuStatus +
            ", menuId=" + menuId +
        "}";
    }
}
